<script setup lang="ts">
import { ref } from 'vue'
import SonCom from './components/SonCom.vue'

const name = ref('jack')
const money = ref(18)

const changeMoney = (pmoney: number) => {
  console.log(pmoney)
  money.value = pmoney
}
</script>

<template>
  <SonCom :name="name" :money="money" @change-money="changeMoney"></SonCom>
</template>

<style scoped></style>
